package com.b2mining.integration.mail;

import javax.mail.Authenticator;
import javax.mail.PasswordAuthentication;


/**
 * Clase que permite la autenticacion del usuario que enviara el correo.
 * @since (7/3/2003 10:35:26 AM)
 * @author Synopsis S.A. <BR>
 * Analista Programador: Janyn Roca
 * 						
 */
public class MailAuthenticator extends Authenticator {

	String smtpUsername = null;
	String smtpPassword = null;

	public MailAuthenticator(String username, String password) {
		smtpUsername = username;
		smtpPassword = password;
	}

	protected PasswordAuthentication getPasswordAuthentication() {
		return new PasswordAuthentication(smtpUsername,smtpPassword);
	}

}

